package com.ffcs.web.model.entity;
// default package

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PicNews entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_PicNews")
public class PicNews implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer advertId;
	private String content;
	private String workName;
	private String title;
	private String counseTel;
	private String counseName;
	private Date addTime;
	@Transient
	private String addTimeStr;

	// Constructors

	/** default constructor */
	public PicNews() {
	}

	/** full constructor */
	public PicNews(Integer advertId, String content, String title,
			String counseTel, String counseName, Date addTime) {
		this.advertId = advertId;
		this.content = content;
		this.title = title;
		this.counseTel = counseTel;
		this.counseName = counseName;
		this.addTime = addTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "advertId", nullable = false)
	public Integer getAdvertId() {
		return this.advertId;
	}

	public void setAdvertId(Integer advertId) {
		this.advertId = advertId;
	}

	@Column(name = "content", nullable = false, length = 2000)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "title", nullable = false, length = 50)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "counseTel", nullable = false, length = 20)
	public String getCounseTel() {
		return this.counseTel;
	}

	public void setCounseTel(String counseTel) {
		this.counseTel = counseTel;
	}

	@Column(name = "counseName", nullable = false, length = 50)
	public String getCounseName() {
		return this.counseName;
	}

	public void setCounseName(String counseName) {
		this.counseName = counseName;
	}
	
	@Column(name = "workName", nullable = false, length = 50)
	public String getWorkName() {
		return workName;
	}

	public void setWorkName(String workName) {
		this.workName = workName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "addTime", nullable = false, length = 19)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Transient
	public String getAddTimeStr() {
		return addTimeStr;
	}

	public void setAddTimeStr(String addTimeStr) {
		this.addTimeStr = addTimeStr;
	}
	
	

}